import request from '@/utils/request';

// 航站配置列表
export function pkgTerminalPage(data) {
  return request('/luggage/terminal/pkgTerminalPage', {
    method: 'get',
    params: data
  });
}

// 航站配置详情
export function pkgTerminalDetail(data) {
  return request('/luggage/terminal/pkgTerminalDetail', {
    method: 'get',
    params: data
  });
}

// 获取下拉库数据，到达航站和出发航站的
export async function queryCityInfo(params) {
  return request('/dp/sys/getSelectCityInfo', {
    method: 'get',
    params,
  })
}

// 保存航站配置
export async function saveTerminal(data) {
  return request('/luggage/terminal/saveTerminal', {
    method: 'post',
    data
  })
}

// 删除航站配置
export async function delTerminal(params) {
  return request('/luggage/terminal/delTerminal', {
    method: 'post',
    params
  })
}